package com.lct.d6_static_singleinstance;

public class Test2 {
    public static void main(String[] args) {
        //目标，实现单例设计模式，饿汉式
        B b1 = B.getInstance();
        B b2 = B.getInstance();

        System.out.println(b1);
        System.out.println(b2);

    }
}
